]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "extensionSystem: Initialize the HTTP session after parse time"
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 11 Jun 2012 17:06:14 +0000 (13:06 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 11 Jun 2012 17:06:14 +0000 (13:06 -0400)
This reverts commit df5298d59c2c7b79c7477ecd1a9cf2dfa25e3b59.

js/ui/extensionSystem.js

index 18fdf641cbe5e4dd9481a7a5dfcb70b87e07b3d0..70ec5e06941bb888ae6547ec15e8f2c0d2955d2b 100644 (file)
@@ -34,7 +34,11 @@ const REPOSITORY_URL_BASE = 'https://extensions.gnome.org';
 const REPOSITORY_URL_DOWNLOAD = REPOSITORY_URL_BASE + '/download-extension/%s.shell-extension.zip';
 const REPOSITORY_URL_INFO =     REPOSITORY_URL_BASE + '/extension-info/';
 
-const _httpSession;
+const _httpSession = new Soup.SessionAsync({ ssl_use_system_ca_file: true });
+
+// See: https://bugzilla.gnome.org/show_bug.cgi?id=655189 for context.
+// _httpSession.add_feature(new Soup.ProxyResolverDefault());
+Soup.Session.prototype.add_feature.call(_httpSession, new Soup.ProxyResolverDefault());
 
 // Arrays of uuids
 var enabledExtensions;
@@ -347,11 +351,6 @@ function onEnabledExtensionsChanged() {
 function init() {
     ExtensionUtils.init();
 
-    _httpSession = new Soup.SessionAsync({ ssl_use_system_ca_file: true });
-    // See: https://bugzilla.gnome.org/show_bug.cgi?id=655189 for context.
-    // _httpSession.add_feature(new Soup.ProxyResolverDefault());
-    Soup.Session.prototype.add_feature.call(_httpSession, new Soup.ProxyResolverDefault());
-
     global.settings.connect('changed::' + ENABLED_EXTENSIONS_KEY, onEnabledExtensionsChanged);
     enabledExtensions = global.settings.get_strv(ENABLED_EXTENSIONS_KEY);
 }